from django.urls import path
from . import views

app_name = 'monitoring'

urlpatterns = [
    path('', views.dashboard, name='dashboard'),
    
    # 监测类别
    path('categories/', views.category_list, name='category_list'),
    path('categories/create/', views.category_create, name='category_create'),
    path('categories/<int:pk>/update/', views.category_update, name='category_update'),
    path('categories/<int:pk>/delete/', views.category_delete, name='category_delete'),
    
    # 监测数据
    path('data/', views.data_list, name='data_list'),
    path('data/create/', views.data_create, name='data_create'),
    path('data/<int:pk>/', views.data_detail, name='data_detail'),
    path('data/<int:pk>/update/', views.data_update, name='data_update'),
    path('data/<int:pk>/delete/', views.data_delete, name='data_delete'),
] 